new Vue({
	el:"#app",
	data:{
		guid: '', 
		imgUrl: 'https://app.meijiangzi.com/static/',
		titleText: '活动海报',
		paths: []
	},
	methods:{
		getData:function(){
			var t = this;
			wx.showLoading({title:"加载中..."});
			this.$http.post(baseUrl+"api/activity/getData/" + t.guid,{}).then(function(e){
				wx.hideLoading();
				var content = e.data;
				if(content.success){
					t.titleText = content.data.name; 
					t.paths = content.data.paths.split(',');
				}else{
					wx.showToast({
						title: content.description,
						icon: "none",
						duration: 2e3,
						mask: !0
					});
				}
			}).catch(function(e){
				console.error(e);
				wx.hideLoading();
				wx.showToast({
					title: "网络错误，请检查网络",
					icon: "none",
					duration: 2e3,
					mask: !0
				});
			});
		}
	},
	mounted: function() {
	},
	created:function(){
		this.guid = URLParam.get("id");
		this.getData();
	}
});